package com.shuyuansystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfo {
    private Integer id;
    private String userId;
    private String merchantId;
    private String receiverName;
    private BigDecimal totalPrice;
    private String shippingAddress;
    private String receiverPhone;
    private String remark;
    private String alipayTransactionId;
    @JsonProperty("merchantOrderNumber") // 确保与前端 JSON 中的属性名一致
    private String merchantOrderNumber;
    private String transactionStatus;
    private String videoUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp paymentTime;
    private String orderStatus;
}